runtime.spanClass.sizeclass (method)
9 uses
runtime (current package)
mcache.go#L164: atomic.Xadd64(&stats.smallAllocCount[spc.sizeclass()], slotsUsed)
mcache.go#L274: atomic.Xadd64(&stats.smallAllocCount[spanClass(i).sizeclass()], slotsUsed)
mcentral.go#L83: spanBytes := uintptr(class_to_allocnpages[c.spanclass.sizeclass()]) * _PageSize
mcentral.go#L243: npages := uintptr(class_to_allocnpages[c.spanclass.sizeclass()])
mcentral.go#L244: size := uintptr(class_to_size[c.spanclass.sizeclass()])
mgcsweep.go#L736: if spc.sizeclass() != 0 {
mgcsweep.go#L745: atomic.Xadd64(&stats.smallFreeCount[spc.sizeclass()], int64(nfreed))
mheap.go#L581: func (sc spanClass) sizeclass() int8 {
mheap.go#L1398: if sizeclass := spanclass.sizeclass(); sizeclass == 0 {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |